package com.aigou.admin.aigouspringboot.mapper;

import com.aigou.admin.aigouspringboot.entity.Order;
import com.aigou.admin.aigouspringboot.entity.OrderProduct;
import com.aigou.admin.aigouspringboot.entity.Product;

import java.util.List;

public interface OrderProductMapper {
    int deleteByPrimaryKey(String id);

    int insert(OrderProduct record);

    List<OrderProduct> selectAll();

    int insertSelective(OrderProduct record);

    OrderProduct selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(OrderProduct record);

    int updateByPrimaryKey(OrderProduct record);

    List<Product> getProductByUserId(String userid);

    List<OrderProduct> selectNum(String userId);

    int deleteOrderById(String id);

}